import BasicLayout from '@/layouts/BasicLayout/index.vue'
import { RouteRecordRaw } from 'vue-router'

// 系统管理路由
export const sys: Array<RouteRecordRaw> = [
  {
    path: '/sys',
    redirect: '/sys/role',
    component: BasicLayout,
    meta: {
      title: '系统管理',
      isShow: true,
      icon: 'SettingOutlined'
    },
    children: [
      {
        path: '/sys/role',
        name: 'Role',
        component: () => import('@/views/sys/roleControl/index.vue'),
        meta: {
          title: '角色管理',
          isShow: true,
          icon: 'AppstoreFilled'
        }
      },
      {
        path: '/sys/user',
        name: 'User',
        component: () => import('@/views/sys/userControl/index.vue'),
        meta: {
          title: '用户管理',
          isShow: true,
          icon: 'AppstoreFilled'
        }
      }
    ]
  }
]
